Optimal. Leaf size=85 \[ -\frac {F_1\left (\frac {1}{2};-n,2;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right ) \cos (e+f x) \sin ^{-n}(e+f x) (d \sin (e+f x))^n}{2 a f \sqrt {a+a \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2866, 2865,
2864, 129, 440} \begin {gather*} -\frac {\cos (e+f x) \sin ^{-n}(e+f x) F_1\left (\frac {1}{2};-n,2;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right ) (d \sin (e+f x))^n}{2 a f \sqrt {a \sin (e+f x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 129
Rule 440
Rule 2864
Rule 2865
Rule 2866
Rubi steps
\begin {align*} \int \frac {(d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx &=\frac {\sqrt {1+\sin (e+f x)} \int \frac {(d \sin (e+f x))^n}{(1+\sin (e+f x))^{3/2}} \, dx}{a \sqrt {a+a \sin (e+f x)}}\\ &=\frac {\left (\sin ^{-n}(e+f x) (d \sin (e+f x))^n \sqrt {1+\sin (e+f x)}\right ) \int \frac {\sin ^n(e+f x)}{(1+\sin (e+f x))^{3/2}} \, dx}{a \sqrt {a+a \sin (e+f x)}}\\ &=-\frac {\left (\cos (e+f x) \sin ^{-n}(e+f x) (d \sin (e+f x))^n\right ) \text {Subst}\left (\int \frac {(1-x)^n}{(2-x)^2 \sqrt {x}} \, dx,x,1-\sin (e+f x)\right )}{a f \sqrt {1-\sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=-\frac {\left (2 \cos (e+f x) \sin ^{-n}(e+f x) (d \sin (e+f x))^n\right ) \text {Subst}\left (\int \frac {\left (1-x^2\right )^n}{\left (2-x^2\right )^2} \, dx,x,\sqrt {1-\sin (e+f x)}\right )}{a f \sqrt {1-\sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=-\frac {F_1\left (\frac {1}{2};-n,2;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right ) \cos (e+f x) \sin ^{-n}(e+f x) (d \sin (e+f x))^n}{2 a f \sqrt {a+a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(276\) vs. \(2(85)=170\).
time = 0.88, size = 276, normalized size = 3.25 \begin {gather*} \frac {\sec (e+f x) (d \sin (e+f x))^n \left (a^2 F_1\left (1;\frac {1}{2},-n;2;\frac {1}{2} (1+\sin (e+f x)),1+\sin (e+f x)\right ) \sqrt {2-2 \sin (e+f x)} (-\sin (e+f x))^{-n} (1+\sin (e+f x))^2-\frac {4 a (-1+\sin (e+f x)) \left (1-\frac {1}{1+\sin (e+f x)}\right )^{-n} \left (2 a (1+2 n) F_1\left (\frac {1}{2}-n;-\frac {1}{2},-n;\frac {3}{2}-n;\frac {2}{1+\sin (e+f x)},\frac {1}{1+\sin (e+f x)}\right )+a (-1+2 n) F_1\left (-\frac {1}{2}-n;-\frac {1}{2},-n;\frac {1}{2}-n;\frac {2}{1+\sin (e+f x)},\frac {1}{1+\sin (e+f x)}\right ) (1+\sin (e+f x))\right )}{\left (-1+4 n^2\right ) \sqrt {1-\frac {2}{1+\sin (e+f x)}}}\right )}{8 a^3 f \sqrt {a (1+\sin (e+f x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.12, size = 0, normalized size = 0.00 \[\int \frac {\left (d \sin \left (f x +e \right )\right )^{n}}{\left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (d \sin {\left (e + f x \right )}\right )^{n}}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d\,\sin \left (e+f\,x\right )\right )}^n}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________